package models;

import java.util.LinkedList;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class Horse extends Model {

	public String Name;
	public String Description;
	public String DateOfBirth;
	public String CountryOrigin;
	
	@ManyToOne
	public User user;

	public Horse(LinkedList<String> attributes) {
		this.Name = attributes.get(0);
		this.Description = attributes.get(1);
		this.DateOfBirth = attributes.get(2);
		this.CountryOrigin = attributes.get(3);

	}
}
